<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8" /> 
    <title>表格解析</title>
    <link rel="stylesheet" href="css/bootstrap.min.css" >
    <script src="js/jquery-1.11.0.min.js"></script>
    <script src="js/bootstrap.min.js" ></script>
    <script src="js/tableParser.js"></script>
</head>
<body class="row">
	<div id="tbParser" class="col-md-12"></div>
</body>
<script>
    var metaId = getQueryString('metaid');

    $.ajax({
        url : '/#####',
        success : function(data){
            var resJson = JSON.parse(data);
            var url = resJson[1].url;
            var type = resJson[1].tableType;
            var tParser = new TableParser()
            tParser.init(url, $('#tbParser'), type);
        }
    });

    function getQueryString(name) {
        var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
        var r = window.location.search.substr(1).match(reg);
        if (r != null) {
            return unescape(r[2]);
        }
        return null;
    }
</script>
</html>